<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
    .form-group-col-2  {
        padding: 3px 0px !important;
        font-size: 12px !important;
        width: 31%;
        font-weight: bolder;
        float: left;
    }

    .form-group-col-2 .form-cont {
        margin-left: 125px;
        min-height: 33px;

    }
    .form-group-col-2 {
        width: 31%;
    }
</style>


<div class="page-wrap">

    <input type="hidden" id="role_check_id" value="${sysid}">
    <c:forEach items="${roles}" var="role">
        <div>
            <div class="form-group-col-2">
                <div class="form-label">${role.name}</div>
                <div class="form-cont">
                    <input type="checkbox"  name="resource_rcheck" class="user_role_check" value="${role.sysid}" ${role.ishave?'checked':""}>
                </div>
            </div>
        </div>
    </c:forEach>

    <div style="clear: both;width: 25%;margin: 10px auto 15px;">
        <button class="btn btn-primary-outline" onclick="saveRole()">保存</button>
    </div>
</div>
